/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.ADP.fixADP.fixADP.impl2;

import za.ac.cput.principles.ADP.fixADP.fixADP.impl3.Omnivore;

/**
 *
 * @author Dwayne
 */
public class Animal 
{
    private String name;
    
    public void setAnimal(String name)
    {
        this.name = name;
    }
    
    public String getAnimal()
    {
        return name;
    }
    
    public String buck()
    {        
        return "herbivore";       
    }
    
    public String lion()
    {
        Omnivore omObj = new Omnivore();
        boolean res = omObj.kill();
        if(res == true)
        {
            return "omnivore";
        }
        else 
            return "herbivore";
    }
        
    
    
}
